DATA_adm_header
DATA_adm_menu
<script language="javascript" type="text/javascript" src="show_files/overlib_.js"></script>
<script language="javascript" type="text/javascript" src="show_files/overlib0.js"></script>

<form enctype="multipart/form-data" name="EditAlbumForm" method="post" action="" onSubmit="return validateForm(this);">
<div align="center" class="centermain">
<div class="main">

<table class="adminheading">
	<tr>
		<th class="edit" rowspan="2" nowrap="nowrap">
			Collection Manager <small><small>[ Section: DATA_section ]</small></small>
		</th>
		<td valign="bottom" align="right" rowspan="2" valign="top">
			DATA_sort_username
		</td>
	</tr>
</table>


<table width="100%">
	<tr>
		<td valign="top">
			<table width="100%" class="adminform">
				<tr>
					<th colspan="2">
						Collection Details
					</th>
				<tr>
				<tr">
					<td colspan="2">
						<div align="center"><font color="red"><b>DATA_error_message</b></font></div>
					</th>
				<tr>
				<tr>
					<td colspan="2">
					</td>
				</tr>
				<tr>
					<td width="20%" align="right">
						Title:
					</td>
					<td >
						<input class="inputbox" type="text" name="inp_title" value="DATA_val_title" size="50" maxlength="100" />
					</td>
				</tr>
				<tr>
					<td width="20%" align="right">
						Indoor Use:
					</td>
					<td width="40%">			
						<select name="inp_indoor" class="inputbox" size="1" >
							<option value="Y" DATA_val_select1>Yes</option>
							<option value="N" DATA_val_select2>No</option>
						</select>
					</td>
				</tr>
				<tr>
					<td width="20%" align="right">
						Outdoor Use:
					</td>
					<td width="40%">			
						<select name="inp_outdoor" class="inputbox" size="1" >
							<option value="Y" DATA_val_select3>Yes</option>
							<option value="N" DATA_val_select4>No</option>
						</select>
					</td>
				</tr>
				<!-- <tr>
					<td width="20%" align="right">
						Type of Wood:
					</td>
					<td width="40%">			
						<select name="inp_typeofwood" class="inputbox" size="1" >
							<option value="EOW" DATA_val_select5>European Oak Wood</option>
							<option value="RTW" DATA_val_select6>Reclaimed Teak Wood</option>
							<option value="VTW" DATA_val_select7>Village Teak Wood</option>
						</select>
					</td>
				</tr> -->
				<tr>
					<td width="20%" align="right">
						Description:
					</td>
					<td >
						<textarea class="inputbox" name="inp_description" rows="5" cols="50">DATA_val_description</textarea>
					</td>
				</tr>
				<tr>
					<td width="20%" align="right">
						Image:
					</td>
					<td >
						<input type="file" name="inp_upl_img"/>
					</td>
				</tr>
				<tr>
					<td colspan="2">
						<input class="inputbox" type="hidden" name="inp_id" value="DATA_val_id_collection" size="25" maxlength="25" />
<!--						<input class="inputbox" type="hidden" name="inp_id" value="DATA_val_id_collection" size="25" maxlength="25" />-->
					</td>
				</tr>
			</table>

</div>
</div>
</form>

<div align="center">
	<br/><b>KINI Indonesia - Administration Panel</b><br/>Jl. Wates Km.12, Gubug, Argosari, Sedayu, Bantul Yogyakarta 55752 Indonesia 
</div>

<div id="title_alert" style="display:none;">You must provide a title</div>
<div id="description_alert" style="display:none;">You must provide a description of collection</div>
<div id="image_alert" style="display:none;">You must provide an image</div>

<script language="javascript">
  setFocusOnTitle();
 
function setFocusOnTitle()
	{
		document.EditAlbumForm.inp_title.focus();
	}

function kliksubmit()
{
	validateForm(EditAlbumForm);
}

function validateForm(frm)
	{
	var message='';
	var ckeckFocus=0;
	
	if(frm.inp_title.value=='')
	{
			if(ckeckFocus!=1)
				frm.inp_title.focus();
				message=message+document.getElementById('title_alert').innerHTML+"\\n";		
			var ckeckFocus=1;	     	  
		} 

	if(frm.inp_description.value=='')
	{
			if(ckeckFocus!=1)
				frm.inp_title.focus();
				message=message+document.getElementById('description_alert').innerHTML+"\\n";		
			var ckeckFocus=1;	     	  
		} 

	if(frm.inp_upl_img.value=='')
	{
			if(ckeckFocus!=1)
				frm.inp_title.focus();
				message=message+document.getElementById('image_alert').innerHTML+"\\n";		
			var ckeckFocus=1;	     	  
		} 
			
	if(message) alert(message); else frm.submit();
}	


</script>

</body>
</html>
